package com.huawang.mdesign.model.service.request;


import com.huawang.business.constants.ParamErrorConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Schema(description = "模型检入检出")
@Data
public class ModelCheckInOutDTO extends ProjectIdDTO {

    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @Schema(title = "模型的id数组")
    @NotEmpty(message = ParamErrorConstants.NO_IDS)
    private List<String> ids;
}
